package com.examination.to.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


/**
 * auther:FC
 * date:2021/5/10
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "login")
public class User {

    @TableId(value = "id",type = IdType.AUTO)
    @ApiModelProperty(value = "主键 用户id", example = "1")
    private Integer id;
    @ApiModelProperty(value = "用户名", example = "Krystal")
    private String username;
    @ApiModelProperty(value = "密码", example = "123456")
    private String password;
    @ApiModelProperty(value = "用户类型",example = "管理员、学生、老师")
    private Integer type;
}
